package com.xiaozhen.driver.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.xiaozhen.common.core.domain.driver.ParseTcpAttributeFormula;
import com.xiaozhen.driver.dao.ParseTcpAttributeFormulaDao;
import com.xiaozhen.driver.service.ParseTcpAttributeFormulaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * HISTORY
 *
 * @author zhenweisheng
 * @date 2021/9/29 14:55
 * @description:
 */
@Service
public class ParseTcpAttributeFormulaServiceImpl implements ParseTcpAttributeFormulaService {

    @Autowired
    private ParseTcpAttributeFormulaDao parseAttributeFormulaDao;

    @Override
    public List<ParseTcpAttributeFormula> selectFormulaList(Long attributeId) {
        QueryWrapper<ParseTcpAttributeFormula> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("attribute_id", attributeId);
        return parseAttributeFormulaDao.selectList(queryWrapper);
    }
}
